package com.amigo.online.provider.adv.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * @version: V 1.0
 * @Description: （数据库实体基础类）
 * @author: zxy  QQ:1363320658
 * @date: 2018年11月30日 上午11:55:27
 */
public class BasicEntity implements Serializable {

    /**
     * @Fields serialVersionUID :
     */
    private static final long serialVersionUID = 1381010206643828086L;

    @Id
    @GeneratedValue(generator = "JDBC")
    private long id;

    /**
     * 创建时间
     */
    @Column(name = "created_time")
    private long createdTime;

    /**
     * 更新时间
     */
    @Column(name = "updated_time")
    private long updatedTime;

    /**
     * 是否删除  0正常， 1 删除，
     */
    @Column(name = "deleted")
    private int deleted;

    /**
     * 删除时间
     */
    @Column(name = "deleted_time")
    private long deletedTime;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }

    public long getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(long createdTime) {
        this.createdTime = createdTime;
    }

    public long getDeletedTime() {
        return deletedTime;
    }

    public void setDeletedTime(long deletedTime) {
        this.deletedTime = deletedTime;
    }

    public long getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(long updatedTime) {
        this.updatedTime = updatedTime;
    }

    public BasicEntity() {
        super();
        this.createdTime = System.currentTimeMillis() / 1000;
    }


}
